package com.tyrant.houtai.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.tyrant.houtai.R;
import com.tyrant.houtai.bean.SMSBean;

import java.util.List;

/**
 * Created by heyue on 2017/5/16.
 */

public class SMSAdapter extends BaseQuickAdapter<SMSBean.ResultBean, BaseViewHolder> {
    public SMSAdapter(@LayoutRes int layoutResId, @Nullable List<SMSBean.ResultBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SMSBean.ResultBean item) {
        helper.setText(R.id.tv_name, item.getMessage_date());
        helper.setText(R.id.tv_phone, item.getMessage_content());
    }
}
